#include <stdio.h>
 
int main(void){
    int nums[] = {10, 20, 30, 40, 50};
    //将数组首地址复制给指针
    int *ptr=&nums[0];
    ptr++;
    printf("*ptr=%d,%p\n",*ptr,ptr);
    ptr+=2;
    printf("*ptr=%d\n",*ptr);
    // 打印地址
    for (int i = 0; i < 5; i++){
        printf("%p\n",&nums[i]);
    }
    printf("&nums:%p\n",&nums);
    
    return 0;
}